interface IState {
  region_id?: string
  cert_status?: number
  // user_name: string
  // site: string
  status?: number
  start_time?: string
  end_time?: string
  keyword?: string
  user_name?: string
  plan_type?: number
}
export const state = reactive<IState>({
  region_id: '',
  cert_status: 0,
  status: 0,
  start_time: '',
  end_time: '',
  keyword: '',
  user_name: '',
  plan_type: 0
})
export const resetState = () => {
  // let key: keyof IState
  // for (key in state) {
  //   state[key] = ''
  // }
  Object.assign(state, {
    region_id: '',
    cert_status: 0,
    plan_type: 0,
    status: 0,
    start_time: '',
    end_time: '',
    keyword: '',
    user_name: ''
  })
}
